package Tween
{
	import Plugin.TweenPlugin;

	public class ValueTween extends TweenPlugin
	{
		public var startValue:Number=0;
		public var endValue:Number=0;
		public var updateCallBack:Function;
		public function ValueTween()
		{
			super();
		}
		override protected function _update():void
		{
			if(time==0)return;
			
			var value:Number = 0;
			value = easeing(time,startValue,endValue-startValue,duration);
			if(updateCallBack)
			{
				updateCallBack(value);
			}
		}
	}
}